package com.dianxin.farm.request.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * @auther xukai
 * @date 2020/9/19.
 */
@Data
@ApiModel("保存商品表单")
public class SaveGoodsRequest {

    @ApiModelProperty("服务名称")
    private String goodsName;

    @ApiModelProperty("分享描述")
    private String thirdDes;
    @ApiModelProperty("服务内容描述h5")
    private String description;

    @ApiModelProperty("服务价格")
    private String price;

    @ApiModelProperty("服务商品的详情h5")
    private String details;
    @ApiModelProperty("上架状态 0未上架 1上架")
    @NotNull(message = "请选择上架状态")
    private Integer shelfStatus;


    @ApiModelProperty("序号，不知道这字段干嘛的，图上有就加了")
    @Min(value = 0,message = "请正确填写序号")
    private Integer sort;


    @ApiModelProperty("服务的图片说明最少1张")
    @Size(min = 1, message = "请上传图片")
    private List<String> imgs;



    @ApiModelProperty(value = "毛利率")
    private BigDecimal profitRate;

    @ApiModelProperty(value = "分红利润率")
    private BigDecimal devidendRate;

    @ApiModelProperty(value = "套餐缩率图地址")
    private String headImageUrl;

}
